#-*-coding:utf-8-*-
import sys
import random

from random_name import name
from random_email import email
from random_phone import phone
from random_idcard import idcard
from random_bankcard import bankcard


if __name__ == "__main__":
    number = int(sys.argv[1])

    for i in range(number):
        sex_id = random.randint(0, 1)
        
        user_name = name.get_girl() if sex_id == 0 else name.get_boy()
        user_sex = "女" if sex_id == 0 else "男"
        user_id_card = idcard.get_generate_id(sex=sex_id)
        user_age = str(idcard.get_age(user_id_card))
        user_birthday = idcard.get_birthday(user_id_card) 
        user_tele = phone.get_tele_number()
        user_mobile = phone.get_mobile_number()
        user_email = email.get_email(user_name)
        user_bank_card = bankcard.get_bank_card()
        
        user_info = (user_name, user_sex, user_age, user_birthday, user_id_card, user_bank_card, user_tele,
                     user_mobile, user_email)

        print("{:6}\t{:2}\t{:2}\t{:4}\t{:18}\t{:20}\t{:12}\t{:12}\t{:20}".format(*user_info))

